package com.nondo.dean.auth.common.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 公司树结构
 *
 * @author linfeng
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CompanyTree implements Serializable {
    private static final long serialVersionUID = -4276364372847685330L;

    private String title;
    private String key;
    private String value;
    private List<CompanyTree> children = new ArrayList<>();

    public CompanyTree() {
    }

    public CompanyTree(String title, String key, String value) {
        this.title = title;
        this.key = key;
        this.value = value;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public List<CompanyTree> getChildren() {
        return children;
    }

    public void setChildren(List<CompanyTree> children) {
        this.children = children;
    }
}
